package com.liwei.enumtest;

import java.io.IOException;
import java.io.PrintStream;

public class Test {

	public static void main(String[] args) {
		Test t = new Test();
		try {
			t.listGradeValues(System.out);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public void listGradeValues(PrintStream out) throws IOException {
		for (Grade g : Grade.values()) {
			out.println("Allowed value: '" + g + "'");
		}
	}

}
